package com.JZ.QM.common.dao;

import com.JZ.QM.common.entity.CombinationYieldEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 
 * 
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020-06-14 11:19:36
 */
@Mapper
public interface CombinationYieldDao extends BaseMapper<CombinationYieldEntity> {

    /**
     * 获取组合的平均收益率
     * @param comBaseId 组合的基本id
     * @return
     */
    BigDecimal getAverageYield(@Param("comBaseId") Long comBaseId);
	
}
